import grails.test.*

class PanelTagLibTests extends TagLibUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {
//        assertEquals """<div  class="operate" style="width: 100px;right: -100px;">Hello World!</div><div class="handle">&</div>""", new PanelTagLib().operate(width:"100") {
//	       "Hello World!" 
//        }

//        def template = '<x:operate width="100"></x:operate>'
//        def result = applyTemplate( template )
//        assertOutputEquals """<div  class="operate" style="width: 100px;right: -100px;">Hello World!</div><div class="handle">&</div>""",result
 

//        tagLib.operate(width:'100'){"Hello World!"}
//        String out = tagLib.out.toString()
 
       // assertToString  """ <div  class="operate" style="width: 100px;right: -100px;">Hello World!</div><div class="handle">&</div>""",out
         
    }
}
